package com.kawa.userService.Impl;

import com.kawa.entity.TSysUser;
import com.kawa.mapper.UserMapping;
import com.kawa.userService.userService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class userServiceImpl implements userService {

    @Autowired
    private UserMapping userMapping;

    @Override
    public List<TSysUser> getUserList() {
        return userMapping.getUserList();
    }

    @Override
    public boolean addUser(TSysUser user) {

        return userMapping.addUser(user) >0;
    }
}
